package br.com.dev.tcc.util.alarm;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import br.com.dev.tcc.view.AlarmeActivity;

public class CancelAlarmReceiver extends BroadcastReceiver {

	public CancelAlarmReceiver() {
	}

	@Override
	public void onReceive(final Context context, Intent intent) {

		int id = intent.getIntExtra("id", -1);

		Intent intent2 = new Intent(context, AlarmeActivity.class);
		intent2.putExtra("id", id);
		intent2.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK
				| Intent.FLAG_ACTIVITY_NO_HISTORY);
		context.startActivity(intent2);
	}
}
